// @ts-ignore
import {request} from 'umi';
import type {LoginLogListItem, LoginLogListParams} from './data.d';

/**
 * 查询登录日志
 * @param params
 */
export async function queryLoginLogList(params: LoginLogListParams) {
  return request<LoginLogListItem>('/api/tpl/loginLog/queryLoginLogList', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}

/**
 * 删除登录日志
 * @param ids
 */
export async function removeLoginLog(ids: number[]) {
  return request('/api/tpl/loginLog/deleteLoginLog', {
    method: 'DELETE',
    data: {
      ids: ids
    },
  });
}

